#!/usr/bin/env python
#coding=utf-8

import aocbase
class Aoc(aocbase.AocBase):
    "Aoc_Delete 用于查询"
    def param_check(self):
        "检查参数列表"
        # 对于非交互性途径传入的参数，检查是必要的
        return True
    
    def aoc_parse(self):
        "将该AOC分解为DOC"
        # aocadd对应的操作只有一个
        # print 'in aocs'
        self.doclist.append(['delete', self.params])

    def excute_doc(self):
        "执行该AOC对应的DOC"
        # 该AOC需要输出返回信息
        r = []
        if self.doclist:
            for tdoc in self.doclist:
                l = self.doc.excute_doc_func(tdoc[0], tdoc[1])
                if l:
                    r.append(l)
        print '删除成功'
